//
//  MyPicCell.m
//  Clock
//
//  Created by NightElf_ZC on 16/4/21.
//  Copyright © 2016年 qianfeng. All rights reserved.
//

#import "MyPicCell.h"

@implementation MyPicCell

+ (MyPicCell *)cellWithCollectionView:(UICollectionView *)collectionView andIndexPath:(NSIndexPath *)indexPath
{
    NSString * className = NSStringFromClass([self class]);
    UINib * nib = [UINib nibWithNibName:className bundle:nil];
    [collectionView registerNib:nib forCellWithReuseIdentifier:className];
    return [collectionView dequeueReusableCellWithReuseIdentifier:className forIndexPath:indexPath];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.contentTextView.editable         = NO;
    self.contentTextView.font             = [UIFont systemFontOfSize:12];
    self.backView.layer.shadowColor       = [UIColor lightGrayColor].CGColor;
    self.backView.layer.shadowOffset      = CGSizeMake(4,4);
    self.backView.layer.shadowOpacity     = 1.0;
    self.backView.layer.shadowRadius      = 2;
    self.contentView.backgroundColor      = [UIColor whiteColor];
    self.backView.backgroundColor         = [tool getColor:BackGray];
    self.numLabel.backgroundColor         = [tool getColor:BackGray];
    self.dateLabel.backgroundColor        = [tool getColor:BackGray];
    self.authorLabel.backgroundColor      = [tool getColor:BackGray];
    self.contentTextView.backgroundColor  = [tool getColor:BackGray];
    self.numLabel.textColor               = [tool getColor:TextGray];
    self.authorLabel.textColor            = [tool getColor:TextGray];
    self.dateLabel.textColor              = [tool getColor:TextGray];
    self.contentTextView.textColor        = [tool getColor:TextBlack];
    

}


@end
